package com.healthcloud.dao;

import com.healthcloud.entity.SysConfigEntity;

import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 系统配置信息
 * Created by yu on 2017/6/6.
 */
public interface SysConfigDao extends BaseDao<SysConfigEntity> {

    /**
     * 根据key，查询value
     * @param paramKey
     * @return
     */
    String queryByKey(String paramKey);


    int updateValueByKey(@Param("key") String key, @Param("value") String value);


	SysConfigEntity queryByNameAndKey(@Param("name") String name, @Param("key") String key);

	List<SysConfigEntity> queryByNameAndRemarkByConfigName(@Param("entity") SysConfigEntity sysConfigEntity,@Param("pageParam") PageParam pageParam);

	int countByNameAndRemarkByConfigName(@Param("entity") SysConfigEntity sysConfigEntity);

}
